
import inspect
from django.contrib import admin
from . import models

for attr in dir(models):
    model = getattr(models, attr)
    if not inspect.isclass(model):
        continue

    try:
        admin.site.register(model, admin.ModelAdmin)
    except Exception as _:  # noqa
        pass
